﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GeneralRpt.aspx.cs" Inherits="ShuiWenJu_RepRealTime_GeneralRpt" %>


<html  >
<head runat="server">
    <title>浙江遥测管理系统——总报表</title>
    <link href="../Css/Swj.css" rel="stylesheet" type="text/css" />
    <link href="../../Css/css.css" rel="stylesheet" type="text/css" />
   <style>
   html,body,table,div{font-size:12px;}
        .div5 a
        {
            color: #FFFFFF;
            text-decoration: none;
        }
        .pageCss
        {
        }
        .pageCss a
        {
            padding: 10px;
            color: #000000;
            text-decoration: none;
        }
        .pageCss span
        {
            padding: 10px;
            background: #CCCCCC;
        }
        .tbData th
        {
            font-weight: 100;
            color: #999;
            text-align: right;
            background: none;
            padding: 2px;
        }
        .tbData td
        {
            padding: 2px;
        }
        .tbData
        {
            background: #fff;
        }
       
        .style1
        {
            height: 474px;
        }
   
div#dvBody {
width: 100%;
height: 500px;
overflow: auto;
scrollbar-base-color:#ffeaff;
font-size:12px;
}
div#dvBody table{font-size:12px;}
 

   .Freezing
        {     
        position:relative ;
        table-layout:fixed;
        top: expression(document.getElementById("dvBody").scrollTop-2); /*IE5+ only*/
        z-index: 10;
        } 
   .Freezing th{text-overflow:ellipsis;overflow:hidden;white-space: nowrap;padding:2px;}

    </style>
    


    <script language="javascript" type="text/javascript">
        function urLink(url) {
            window.parent.frames["content"].location.href = url;
        }
    </script>

</head>
<body class="mainbg">
    <div class="menu">
        <ul>
            <li onclick="urLink('../../ShuiWenJu/RepRealTime/GoogleMap.aspx')" style="cursor: hand;">
                地 图</li>
            <li class="curr">数 据</li>
        </ul>
    </div>
    <form id="form1" runat="server">
    <table cellpadding="2" cellspacing="0" class="tbData" align="center">
        <tr>
            <th>
                城市:
            </th>
            <td>
                <asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
                    <asp:ListItem Selected="True" Value="">全部</asp:ListItem>
                </asp:DropDownList>
            </td>
            <th>
                区县:
            </th>
            <td>
                <asp:DropDownList ID="ddlXian" runat="server">
                    <asp:ListItem Selected="True" Value="">全部</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <th>
                站点类型:
            </th>
            <td>
                <asp:DropDownList ID="ddlStationType" runat="server">
                    <asp:ListItem Selected="True" Value="">全部</asp:ListItem>
                    <asp:ListItem Value="标准雨量站">标准雨量站</asp:ListItem>
                    <asp:ListItem Value="水库">水库</asp:ListItem>
                    <asp:ListItem Value="河道">河道</asp:ListItem>
                    <asp:ListItem Value="闸坝">闸坝</asp:ListItem>
                    <asp:ListItem Value="潮位">潮位</asp:ListItem>
                </asp:DropDownList>
            </td>
            <th>
                站名:
            </th>
            <td>
                <asp:TextBox ID="txtStation" runat="server"></asp:TextBox>
            </td>
        </tr>
       <%-- <tr >
            <th>
                雨量类别(填雨量值有效):
            </th>
            <td>
                <asp:DropDownList ID="ddlRain" runat="server">
                    <asp:ListItem Value="yesterdayR5">昨日雨量</asp:ListItem>
                    <asp:ListItem Value="todayR5">今日雨量</asp:ListItem>
                    <asp:ListItem Value="last3HourR5">前3小时雨量</asp:ListItem>
                </asp:DropDownList>
            </td>
            <th>
                雨量(>=):
            </th>
            <td>
                <asp:TextBox ID="txtRainValue" runat="server"></asp:TextBox>
            </td>
        </tr>--%>
        <tr>
            <td colspan="4" align="center">
                <asp:Label ID="lblMsg" runat="server" Visible="false"></asp:Label>
            </td>
        </tr>
    </table>
    <div class="tabdiv">
        <table cellpadding="0" cellspacing="0" class="tbData" align="center">
            <tr>
                <td class="style1" align=center>
                    <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="btnsearch" OnClick="btnSearch_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnExport" runat="server" Text="导出" CssClass="btnsearch" OnClick="btnExport_Click" />
                </td>
            </tr>
            <tr>
                <td>
                 <div  id="dvBody">

                    <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" Width="100%"
                        AllowPaging="True" OnPageIndexChanging="gvData_PageIndexChanging" PageSize="40"
                        OnSorting="gvData_Sorting" AllowSorting="True">
                        <Columns>
                            <asp:BoundField HeaderText="区域" DataField="SHI" SortExpression="SHI" />
                            <asp:BoundField HeaderText="县" DataField="XIAN" SortExpression="XIAN" />
                            <asp:BoundField HeaderText="类别" DataField="sttp" SortExpression="sttp" />
                            <asp:HyperLinkField DataNavigateUrlFields="yr_stcd" DataTextField="stnm" HeaderText="站名"
                                Target="_blank" DataNavigateUrlFormatString="MsLineDetail.aspx?siteId={0}" SortExpression="stnm" />
                            <asp:BoundField HeaderText="昨日雨量" DataField="yesterdayR5" SortExpression="yesterdayR5" />
                            <asp:BoundField HeaderText="今日雨量" DataField="todayR5" SortExpression="todayR5" />
                            <asp:BoundField HeaderText="前三小时雨量" DataField="last3HourR5" SortExpression="last3HourR5" />
                            <asp:BoundField HeaderText="前一小时雨量" DataField="last1HourR5" SortExpression="last1HourR5" />
                            <asp:BoundField HeaderText="八点水位" DataField="eightWaterValue" />
                            <asp:BoundField HeaderText="上报时间" DataField="TM" />
                            <asp:BoundField HeaderText="水位" DataField="waterValue" />
                            <asp:BoundField HeaderText="警戒水位" DataField="guardWater" />
                        </Columns>
                        <PagerStyle CssClass="pageCss" />
                        <%--<HeaderStyle CssClass="Freezing" />--%>
                        <HeaderStyle  Font-Bold="True" CssClass="Freezing"/>

                    </asp:GridView>
                    </div>
                    </form>
                </td>
            </tr>
        </table>
    </div>
    
</body>
</html>
